<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMebConsumptionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('meb_consumption', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('number')->comment('订单号');
            $table->string('patient_id')->default('')->comment('患者姓名');
            $table->char('visit_card')->comment('就诊卡号');
            $table->tinyInteger('socure')->comment('来源');
            $table->tinyInteger('business_type')->comment('业务类型');
            $table->integer('drug_id')->comment('费用类型');
            $table->string('pay_type')->default('')->comment('支付方式');
            $table->string('money')->default('')->comment('支付金额');
            $table->tinyInteger('status')->comment('缴费状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('meb_consumption');
    }
}
